﻿using FluentAssertions;
using RandomKatas.Kata04;
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RandomKataTests
{
    [TestClass]
    public class DataMungingTest
    {
        [TestMethod]
        public void WeatherDataParsedCorrectly()
        {
            new DataMunging().Weather_SmallestSpread(Properties.Resources.WeatherData).Item1.Should().Be(14, "because line 16 (day 14) has a spread of 2 degrees");
        }

        [TestMethod]
        public void FootballDataParsedCorrectly()
        {
            new DataMunging().Football_SmallestSpread(Properties.Resources.FootballData).Item1.Should().Be("Aston_Villa", "because they were almost even");
        }
    }
}
